import request from '@/utils/request'

// 查询班主任日志列表
export function listMasterJournal(query) {
  return request({
    url: '/edu/masterJournal/list',
    method: 'get',
    params: query
  })
}

// 查询班主任日志详细
export function getMasterJournal(journalId) {
  return request({
    url: '/edu/masterJournal/' + journalId,
    method: 'get'
  })
}

// 新增班主任日志
export function addMasterJournal(data) {
  return request({
    url: '/edu/masterJournal',
    method: 'post',
    data: data
  })
}

// 修改班主任日志
export function updateMasterJournal(data) {
  return request({
    url: '/edu/masterJournal',
    method: 'put',
    data: data
  })
}

// 删除班主任日志
export function delMasterJournal(journalId) {
  return request({
    url: '/edu/masterJournal/' + journalId,
    method: 'delete'
  })
}

// 导出班主任日志
export function exportMasterJournal(query) {
  return request({
    url: '/edu/masterJournal/export',
    method: 'get',
    params: query
  })
}

// 审核班主任日志
export function examineNotice(journalId, status, examineNotes ) {
  return request({
    url: '/edu/masterJournal/' + journalId + '/' + status + '/' + examineNotes,
    method: 'put',
  })
}